/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mygame.Player;

import mygame.Object.GameObject;

/**
 *
 * @author Mr.N0I3oDy
 */
public class Ressource {

    private String object;
    private int count;

    public Ressource(GameObject object, int count) {
        this.object = object.getRessource();
        this.count = count;
    }

    public Ressource(String object, int count) {
        this.object = object;
        this.count = count;
    }

    public int getCount() {
        return count;
    }

    public String getObject() {
        return object;
    }

    public void increaseCount(int count) {
        this.count += count;
    }

    public boolean decreaseCount(int count){
        if (this.count - count < 0) {
            return false;
        } else {
            this.count -= count;
            return false;
        }
    }
}
